var number
number=0
document.getElementById('mainContent').style.display = 'none';

var password
var input
password="durianpeoplewantstogetin";

do
  {
    input=window.prompt("Password:");
    if (input==password) {
      match="equal";
    } else {
      match="unequal";
      window.alert("Password salah. Anda akan memasukkan ulang sandi.")
    }
  } while (match=="unequal")


function looping()
{
do
  {
    input=window.prompt("Password:");
    if (input==password) {
      match="equal";
    } else {
      match="unequal";
      window.alert("Password salah. Anda akan memasukkan ulang sandi.")
    }
  } while (match=="unequal")
}


if (match=="unequal") {
looping();
}


<!--
function pass()
{
var password
var input
password="durianpeoplewantstogetin";
input=window.prompt("Password:");
if (input==password) {
  document.getElementById('mainContent').style.display = 'block';
}
}
function hideContent()
{
 document.getElementById('mainContent').style.display = 'none';
 test=asd
 number=test
}
function showContent()
{
 document.getElementById('mainContent').style.display = 'block';
}
function reveal()
{
  number=number+1
  if (number==1) {
    window.alert("o");
  }
  if (number==2) {
    window.alert("oc");
  }
  if (number==3) {
    window.alert("ch");
  }
  if (number==4) {
    window.alert("ha");
  }
  if (number==7) {
    window.alert("united nation Office for the Coordination of Humanitian Affairs")
  }
}

// -->